const { override, addWebpackAlias, addLessLoader, } = require('customize-cra')
const path = require('path')

module.exports = override(
    addLessLoader({
        lessOptions: {
            javascriptEnabled: true,
            // Optionally adjust URLs to be relative. When false, URLs are already relative to the entry less file.
            relativeUrls: false,
            // modifyVars: { '@primary-color': '#A80000' },
            // cssModules: {
            //   // if you use CSS Modules, and custom `localIdentName`, default is '[local]--[hash:base64:5]'.
            //   localIdentName: "[path][name]__[local]--[hash:base64:5]",
            // }
        }
    }),
    // 配置路径别名
    addWebpackAlias({
        '@': path.resolve(__dirname, './src'),
        '_c': path.resolve(__dirname, './src/components')
    })
)

